package com.mycony.demo29;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
	
	@RequestMapping("/")
	public String index(){
		return "index";
		
	}
		
	@RequestMapping("/hello")
	public String hello(){
		return "HelloWorld";
		
	}
	 @RequestMapping(value = "/login", method = RequestMethod.GET)
	    public String login() {
	        return "login";
	    }
	

}
